UserBooks:
  type: object
  properties:
    id:
      type: integer
      description: "Идентификатор записи"
      example: 1
    user_id:
      type: integer
      description: "Идентификатор пользователя"
      example: 2
    book_id:
      type: integer
      description: "Идентификатор книги"
      example: 3
    status:
      type: string
      description: "Статус"
      example: "reading"
    read_date:
      type: string
      format: date
      description: "Дата прочтения"
      example: "2024-01-01"
    abandon_date:
      description: "Дата бросания чтения"
      format: date
      type: string
      example: "2024-01-01"
    rating:
      description: "Оценка книги"
      format: integer
      example: "5"
    updated_at:
      description: "Дата обновления"
      format: date-time
      type: string
      example: "2024-01-01T11:57:28.000000Z"
    created_at:
      description: "Дата создания"
      format: date-time
      type: string
      example: "2024-01-01T11:57:28.000000Z"
  required:
    - id
    - user_id
    - book_id
    - status

UserBooksResponse:
  type: object
  properties:
    data:
      $ref: '#/UserBooks'
    meta:
      type: object
  required:
    - data

CreateUserBooksRequest:
  type: object
  properties:
    user_id:
      type: integer
      description: Идентификатор пользователя
      example: 2
    book_id:
      type: integer
      description: Идентификатор книги
      example: 3
    status:
      type: string
      description: status
      example: "Reading"
    read_date:
      type: string
      format: date
      description: "Дата прочтения"
      example: "2024-01-01"
      nullable: true
    abandon_date:
      description: "Дата бросания чтения"
      format: date
      type: string
      example: "2024-01-01"
      nullable: true
    rating:
      description: "Оценка книги"
      format: integer
      example: "5"
  required:
    - user_id
    - book_id
    - status
    - read_date
    - abandon_date
    - rating